window.onload = function() {
var mySwiper = new Swiper ('.swiper-container', {
    direction: 'horizontal',
    loop: true,
    slidesPerView: 4,
    slidesPerGroup: 1,
    loopFillGroupWithBlank: true,
//  autoplay:true,
    
    autoplay: {
    delay: 1000,
    stopOnLastSlide: false,
    disableOnInteraction: true,
    },
    // 如果需要分页器
    pagination: {
      el: '.swiper-pagination',
    },
    
    // 如果需要前进后退按钮
    navigation: {
      nextEl: '.swiper-button-next',
      prevEl: '.swiper-button-prev',
    },
    
    // 如果需要滚动条
    scrollbar: {
      el: '.swiper-scrollbar',
    },
  })	
	
$(".server .qulian").on("mouseover", function(){
$(this).addClass('allborder');
});
$(".server .qulian").on("mouseout", function(){
$(this).removeClass('allborder');
});
 
$(".youshi .box").on("mouseover", function(){
$(this).addClass('animated pulse');
});
$(".youshi .box").on("mouseout", function(){
$(this).removeClass('animated pulse');
});
//轮播图距离顶部的距离
var heightLunbo = $(".lunbo").offset().top;

window.onscroll = function() {
var height = $(document).scrollTop();

if(height>0){
$(".navbar").css('backgroundColor','rgba(255, 255, 255, 0.8)');	
 }
}
//动画 
var wow = new WOW({
    boxClass: 'wow',
    animateClass: 'animated',
    offset: 0,
    mobile: false,
    live: true
});
wow.init();

}